xend: Fix spurious store changes on rename/migrate
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 May 2007 09:18:11 +0000 (10:18 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 May 2007 09:18:11 +0000 (10:18 +0100)
_storeChanged() was incorrectly comparing a string to an sxpr, thus
always firing and causing unnecessary watches to be fired in the
domU.

Signed-off-by: John Levon <john.levon@sun.com>
tools/python/xen/xend/XendDomainInfo.py

index 4dc288314c6f1ee2e8c22c8797854741529e6aac..c082c19090dc7579a599883cc5bc6713d9f70ff0 100644 (file)
@@ -885,7 +885,7 @@ class XendDomainInfo:
 
         # Check whether image definition has been updated
         image_sxp = self._readVm('image')
-        if image_sxp and image_sxp != self.info.image_sxpr():
+        if image_sxp and image_sxp != sxp.to_string(self.info.image_sxpr()):
             self.info.update_with_image_sxp(sxp.from_string(image_sxp))
             changed = True